use napi_derive_ohos::napi;
use uuid::Uuid;

#[napi]
pub fn uuid_v4() -> String {
  Uuid::new_v4().to_string()
}

#[napi]
pub fn is_valid_uuid(test_uuid: String) -> bool {
  Uuid::parse_str(&test_uuid).is_ok()
}

#[napi]
pub fn add(left: u32, right: u32) -> u32 {
  left + right
}
